package com.test.p20mediator.example01;

public class Finacial implements Department {

    private Mediator mediator;

    public Finacial(Mediator mediator) {
        super();
        this.mediator = mediator;
        mediator.register("finacial",this);
    }

    @Override
    public void selfAction() {
        System.out.println("数钱");
    }

    @Override
    public void outAction() {
        System.out.println("汇报工作，开销很大");
    }
}
